
myApp.controller('viewController',
    //['$scope'],
    function($scope, $location, viewService,$rootScope) {
        $scope.name = "";
        $rootScope.isLoginPage = true;
        $scope.changeValue = function(yourName) {
        //$scope.name = "My Name is.... chiki chiki ..... " + yourName;
        }
        $rootScope.showWelcomeMessage = false;
        $rootScope.showSearchBar = false;
    
        $scope.redirect = function() {
            $location.path('/view1');
        }
    
        $scope.getUsers = function() {
            var getUserSuccess = function(respData) {
                $scope.users = respData.data;
            }
            var getUserFailure = function(errorData) {
            }
            viewService.getUsers().then(getUserSuccess,getUserFailure);
        }
        $scope.getUsers();
    
    });

myApp.controller('RatingDemoCtrl', function ($scope, $rootScope) {
    
});